package com.example.day18;

import java.io.FileInputStream;
import java.io.InputStreamReader;

/**
 * @author Lenovo
 */
public class InputStreamReaderDemo {
    public static void main(String[] args) throws IOException, java.io.IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("myCharStream\\ConversionStreamDemo.java"));
        char[] chs = new char[1024];
        int len;
        while ((len = isr.read(chs)) != -1) {
            System.out.print(new String(chs, 0, len));
        }
        isr.close();
    }
}
